Skip to content

Conversation

@basvandijk
Copy link
Collaborator

@basvandijk basvandijk commented Feb 11, 2026

I would like the Ubuntu @noble//... packages and everything that depends on them to be only compatible with Linux such that they're not build on MacOS.

Now, even though the copy_file rule in oci_tar is configured with
target_compatible_with = [ "@platforms//os:linux"] it seems like that property is not taken into account:

$ bazel query 'rdeps(//rs/tests/..., @noble//bash/amd64) except attr(target_compatible_with, "@platforms//os:linux", //rs/tests/...)' | grep //rs/tests:ubuntu_test_runtime.tar
//rs/tests:ubuntu_test_runtime.tar

It turns out we don't really need that copy_file rule anyway so this commit removes it resulting in:

$ bazel query 'rdeps(//rs/tests/..., @noble//bash/amd64) except attr(target_compatible_with, "@platforms//os:linux", //rs/tests/...)' | grep //rs/tests:ubuntu_test_runtime.tar

Also note that rules_oci recommends not depending on oci_load outputs if it can be avoided since it will trash the cache:
https://github.com/bazel-contrib/rules_oci/blob/main/docs/load.md#build-outputs

@basvandijk basvandijk added the CI_ALL_BAZEL_TARGETS Runs all bazel targets and uploads them to S3 label Feb 11, 2026
@github-actions github-actions bot added the chore label Feb 11, 2026
@basvandijk basvandijk marked this pull request as ready for review February 11, 2026 22:47
@basvandijk basvandijk requested review from a team as code owners February 11, 2026 22:47
Base automatically changed from basvandijk/refactor-uvm_config_image to master February 12, 2026 12:28
@basvandijk basvandijk requested review from a team as code owners February 12, 2026 12:28
basvandijk added a commit that referenced this pull request Feb 12, 2026
… remap_paths (#8796)

Besides being a requirement for: #8802
it's better to be fully explicit about how source files are mapped into
FAT images in the `mcopy` and `uvm_config_image` rules. So this replaces
their `srcs` and `remap_paths` arguments with the single `srcmap`
argument of type `label_keyed_string_dict` that specifies how a source
target is mapped into the FAT image.
@basvandijk basvandijk removed the CI_ALL_BAZEL_TARGETS Runs all bazel targets and uploads them to S3 label Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants